package com.kingmed.kmss.framework.feign.client.bpmn;


import java.util.List;

import com.kingmed.kmss.common.qc.bpmn.MyTaskQC;
import com.kingmed.kmss.common.vo.CommonPage;
import org.springframework.stereotype.Component;

import com.kingmed.kmss.common.bo.bpmn.BpmnBO;
import com.kingmed.kmss.common.bo.bpmn.ProcessStarterBO;
import com.kingmed.kmss.common.bo.bpmn.TaskBO;
import com.kingmed.kmss.common.bo.bpmn.TaskExBO;
import com.kingmed.kmss.common.dto.bpmn.BizApprovalTrailDTO;
import com.kingmed.kmss.common.exception.InternalApiException;
import com.kingmed.kmss.common.qc.bpmn.ApprovalTrailQC;
import com.kingmed.kmss.common.vo.CommonResponse;

@Component
public class CommonBpmnFallbackService implements CommonBpmnFeignService {

	@Override
	public CommonResponse<List<BizApprovalTrailDTO>> approvalTrail(ApprovalTrailQC qc) {
		throw new InternalApiException("BPMN service: 获取流程跟踪信息调用失败");
	}

	@Override
	public CommonResponse<BpmnBO> startProcessInstance(ProcessStarterBO procStarter) {
		throw new InternalApiException("BPMN service: 启动流程调用失败");
	}

	@Override
	public CommonResponse<List<TaskBO>> complete(TaskExBO taskExBO) {
		throw new InternalApiException("BPMN service: 完成/执行审批任务调用失败");
	}

	@Override
	public CommonResponse<TaskBO> findTask(String taskId) {
		throw new InternalApiException("BPMN service: 根据taskId查找任务调用失败");
	}

	@Override
	public CommonResponse<CommonPage<TaskBO>> findTodoTask(MyTaskQC param) {
		throw new InternalApiException("BPMN service: 查询用户待办调用失败");
	}
}
